 /* ==================== 基础样式 ==================== */
 body {
    font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background: linear-gradient(45deg, #f8f9fa 0%, #f1f3f5 100%);
    color: #2d3436;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2b2d42, #6d597a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #666, transparent);
    margin: 20px auto;
    width: 80%;
}

/* ==================== 时间线样式 ==================== */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-year {
    position: absolute;
    left: -100px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    width: 80px;
    text-align: right;
}

.timeline-content {
    margin-left: 40px;
}

/* ==================== 分支样式 ==================== */
.branch {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.branch-title {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.branch-title:hover {
    background: #e9ecef;
}

/* 不同类型分支的标题颜色 */
.branch[data-type="album"] .branch-title {
    background: #e3f2fd;
}

.branch[data-type="single"] .branch-title {
    background: #fff8e1;
}

.branch[data-type="composition"] .branch-title {
    background: #f3e5f5;
}

.toggle-icon {
    transition: transform 0.3s;
}

.branch-content {
    padding: 20px;
}

/* ==================== 专辑头部样式 ==================== */
.album-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.album-cover img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.album-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.album-title {
    margin: 0 0 10px 0;
    color: #333;
}

.album-release {
    color: #666;
    font-size: 0.9rem;
}

/* ==================== 歌曲列表样式 ==================== */
/* 统一表格布局 */
.song-list {
    table-layout: fixed; /* 关键属性 */
    width: 100%;
}

.song-list th,
.song-list td {
    padding: 12px 15px;
    vertical-align: middle;
    text-align: left;
}

/* 序号列 */
.song-list td:nth-child(1),
.song-list th:nth-child(1) {
    text-align: center;
}

/* 播放按钮列 */
.song-list td:last-child {
    text-align: center;
    padding-right: 0;
}

/* 歌词切换列 */
.lyrics-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* 统一行高 */
.song-list tr {
    height: 48px;
}

/* 歌词行特殊处理 */
.lyrics-row td {
    padding: 0 !important;
    border-top: 1px solid #eee;
}

.lyrics-container {
    padding: 1.5rem;
    background: rgba(241,243,245,0.4);
    width:1000px;
    border-radius: 8px;
    margin: 0.5rem 0;
    line-height: 1.8;
    font-size: 0.95rem;
    color: #495057;
}

.lyrics-row { display: none; }

/* 高亮当前播放的歌曲行 */
.song-list tr.playing-row {
    background-color: rgba(54, 173, 66, 0.1); /* 浅绿色背景 */
    border-left: 3px solid #21e5f3;           /* 左侧蓝色指示条 */
}

/* 保持原行高约束 */
.song-list tr.playing-row {
    height: 48px !important;
}

/* 列宽分配 (总宽度100%) */
.col-number { 
    width: 13%;  /* 序号列 */
    text-align: center;
}

.col-title {
    width: 27%; /* 歌曲标题 */
    padding-left: 10px !important;
}

.col-singer {
    width: 17%; /* 歌手 */
}

.col-duration {
    width: 10%; /* 时长 */
    text-align: center;
}

.col-lyrics {
    width: 13%; /* 歌词开关 */
}

.col-play {
    width: 20%; /* 播放按钮 */
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .col-singer,
    .col-duration {
        display: none; /* 小屏幕隐藏次要信息 */
    }
    
    .col-number { width: 15%; }
    .col-title { width: 60%; }
    .col-lyrics { width: 15%; }
    .col-play { width: 10%; }
}

/* ==================== 播放器样式 ==================== */



/* ==================== 播放器样式 ==================== */
#playerContainer {
    position: fixed;
    width: 300px;
    min-height: 140px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 9999;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: move;
}

#playerContainer:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.player-body {
    display: flex;
    flex-direction: column;
    width:100%;
    height: 100%;
    padding: 3px;
}

/* 头部区域 */
.player-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.1) 0%, transparent 100%);
}

.drag-handle {
    color: #2196F3;
    font-size: 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
    cursor: grab;
}

.drag-handle:hover {
    opacity: 1;
}

#nowPlaying {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 内容区域 */
.player-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.time-display {
    font-size: 15px;
    font-family: 'Courier New', monospace;
    color: #666;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* 控制按钮组 */
.player-controls {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

#playPauseBtn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2196F3;
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

#playPauseBtn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

#playModeBtn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    transition: all 0.3s ease;
}

#playModeBtn:hover {
    background: rgba(33, 150, 243, 0.2);
}

/* 动画优化 */
@keyframes rotate {
    to { transform: rotate(360deg); }
}

#playModeBtn.loop-mode {
    animation: rotate 2s linear infinite;
    background: rgba(33, 150, 243, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    #playerContainer {
        width: calc(100% - 32px);
        left: 16px !important;
        right: auto !important;
        bottom: 16px !important;
        min-height: 120px;
    }
    
    .player-content {
        padding: 12px;
        gap: 16px;
    }
    
    .player-controls {
        gap: 20px;
    }
    
    #playPauseBtn {
        width: 44px;
        height: 44px;
    }
}

/* ==================== 新增样式 ==================== */


/* 表格表头样式 */
.song-list thead th {
    font-weight: bold;
    background-color: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 10;
}

